package cn.qyd.list;

import java.util.*;

/**
 * @author 邱运铎
 * @date 2024-03-13 10:45
 */
public class LinkListDemo {
    public static void main(String[] args) {
        List<String> list = new LinkedList<>();
        list.add("邱运铎");
        list.addAll(Arrays.asList("1","2","3"));
        list.forEach(item -> System.out.println(item));
        list.add(null);
        list.add(null);
        Hashtable hashtable = new Hashtable();
        hashtable.put(null,1);
        for (Iterator i = list.iterator(); i.hasNext(); ) {
            System.out.println(i.next() + "~~~~~~~~~~");
        }
        list.remove(null);
        for (int i=0, size=list.size(); i < size; i++) {
            System.out.print(list.get(i) + "=============");
        }
        System.out.println();
        Class<String> stringClass = String.class;
        System.out.println(stringClass);
    }
}
